package com.higold.cloud.mvp.contract

import com.higold.cloud.base.IBaseView
import com.higold.cloud.base.IPresenter
import com.higold.cloud.mvp.model.bean.postReport.PostReport
import com.higold.cloud.mvp.model.bean.UploadPic
import com.higold.cloud.mvp.model.bean.dailyPostList.DailyPostList

/**
 *    author : lxz
 *    date   : 2019/9/4 16:19
 *    desc   :
 */
interface ReportContract {
    interface View : IBaseView {
        /**
         * 设置 Pic
         */
        fun setUploadPic(uploadPic: UploadPic)

        fun setReport(report: PostReport)

        fun setDailyPostList(dailyPostList : DailyPostList)

        fun showError(errorMsg: String, errorCode: Int)
    }


    interface Presenter : IPresenter<View> {
        /**
         * 获取 UploadPic 地址
         */
        fun getUploadPic(file: String)

        fun getReport(params: HashMap<String, String>)

        fun getDailyPostList()
    }
}